//
//  NoteDAO.h
//  Persistence
//
//  Created by 郑火 on 16/2/9.
//  Copyright © 2016年 zwz. All rights reserved.
//
#import "Note.h"
#import "NoteDAODelegate.h"
//#import "NoteManagedObject.h"
#import "CoreDataDAO.h"
#import <Foundation/Foundation.h>

#define HOST_PATH @"/service/mynotes/WebService.php"
#define HOST_NAME @"51work6.com"
#define USER_ID  @"914256223@qq.com"
/**
 *  <#Description#>
 */
@interface NoteDAO : CoreDataDAO
/**
 *  单例
 *
 *  @return <#return value description#>
 */
+(NoteDAO*) sharedManager;

@property(nonatomic,strong) NSMutableArray* listData;
@property(weak, nonatomic) id<NoteDAODelegate> delegate;
/**
 *  增加Note
 *
 *  @param model <#model description#>
 *
 *  
 */
-(void)create:(Note*)model;
/**
 *  删除Note
 *
 *  @param mocel <#mocel description#>
 *
 *  @return <#return value description#>
 */
-(void)remove:(Note*)model;
/**
 *  修改Note
 *
 *  @param model <#model description#>
 *
 *
 */
-(void)modify:(Note*)model;
/**
 *  查找所有Note
 *
 *
 */
-(void)findAll;
/**
 *  根据id查询Note
 *
 *  @param model <#model description#>
 *
 *
 */
-(void)findById:(Note*)model;




@end
